package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._15组合模式._2公司管理;

//人力资源部，树叶节点
class HRDepartment extends Company{
    public HRDepartment(String name){
        super(name);
    }

    public void add(Company company){
    }
    public void remove(Company company){
    }
    public void display(int depth) { 
        for(int i=0;i<depth;i++)
            System.out.print("-");
        System.out.println(name);
    }            
    //履行职责
    public void lineOfDuty(){
        System.out.println(name+" 员工招聘培训管理");
    }
}
